﻿<%@ Page Title="Historical Data" Language="C#" MasterPageFile="~/user.master"
    AutoEventWireup="true" Inherits="MediaMonitor.Users.HistoricalData" Theme="default"
    CodeBehind="HistoricalData.aspx.cs" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register Src="~/Controls/AutoCompleteExtender.ascx" TagPrefix="ctrl" TagName="AutoComplete" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="Server">
    <link href="../rad-scripts/Grid.MyCustomSkin.css" rel="stylesheet" type="text/css" />
    <link href="../rad-scripts/Input.MyCustomSkin.css" rel="stylesheet" type="text/css" />
    <link href="../rad-scripts/Menu.MyCustomSkin.css" rel="stylesheet" type="text/css" />
    <link href="../rad-scripts/slider.MyCustomSkin.css" rel="stylesheet" type="text/css" />
    <link href="../rad-scripts/Calendar.MyCustomSkin.css" rel="stylesheet" type="text/css" />
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
        
        <script type="text/javascript">

            function DateSelected(sender, eventArgs) {


                var date = eventArgs.get_renderDay().get_date();
                var dfi = sender.DateTimeFormatInfo;
                var formattedDate = dfi.FormatDate(date, dfi.ShortDatePattern);

                var calE = $find("<%= calE.ClientID %>");

                calE.selectDate(date, true)

            }

        </script>
    </telerik:RadCodeBlock>


</asp:Content>


<asp:Content ID="Content2" ContentPlaceHolderID="Body" runat="Server">


    <asp:Panel ID="pnlSearch" runat="server">

        <table>
            <tr>
                <td colspan="2">
                    <b>Dates</b><br />
                    <br />
                </td>
            </tr>
            <tr>
                <td></td>
                <td>
                    <table>
                        <tr valign="top">
                            <td>From Date
                        <br />
                                <telerik:RadCalendar AutoPostBack="false" ID="calS" runat="server" EnableMultiSelect="false"
                                    ClientEvents-OnDateSelected="DateSelected">
                                </telerik:RadCalendar>
                            </td>
                            <td>
                                <div style="width: 50px;"></div>
                            </td>
                            <td>To Date
                        <br />
                                <telerik:RadCalendar AutoPostBack="false" ID="calE" runat="server" EnableMultiSelect="false">
                                </telerik:RadCalendar>
                            </td>

                        </tr>
                        <asp:Panel runat="server" ID="pnlmsg">
                            <tr>
                                <td colspan="3">
                                    <small><u class="ErrorText">Note:</u> only dates in blue color are valid dates having Historical commercial's data.</small>
                                </td>
                            </tr>
                        </asp:Panel>
                    </table>
                </td>
            </tr>
            <tr>
                <td></td>
                <td>
                    <asp:Button ID="btnExportData" runat="server" OnClick="btnExportData_Click" Text="Export" />
                </td>
            </tr>

        </table>

    </asp:Panel>




</asp:Content>



